(function(window){
	var Subject_lesson_detailCtrl = {
		data:{},
		init: function(data){
			this.bindEven();
			var h=$(window).height();
			var video_h=h-60;
			$("#videoWrapper").height(video_h);
			$("#videoWrapper object").height(video_h);
			$(".action_box").height(video_h-20);
			Subject_lesson_detailCtrl.kindeditor();
        },
		kindeditor:function(){
			var items=[
         'undo', 'redo',  'justifyleft', 'justifycenter', 'justifyright', 'fontname', 'fontsize', '|', 'forecolor',  'bold', 'underline', 'lineheight', 'removeformat', '|', 'image','link', 'unlink'
];
		
		var editor = KindEditor.create('#contentNote', {
				resizeType : 1,
				//allowPreviewEmoticons : false,
				//allowImageUpload : true,
				items:items,
				showRemote : false,
				uploadJson : '/BoxApi/Kindeditor/uploadJson',
				urlType : 'absolute',
			});
		var editor_2 = KindEditor.create('#contentQuestion', {
				resizeType : 1,
				//allowPreviewEmoticons : false,
				//allowImageUpload : true,
				showRemote : false,
				items:items,
				uploadJson : '/BoxApi/Kindeditor/uploadJson',
				urlType : 'absolute',
			});	
			 

			 
		},
		bindEven: function(){
            var bindings = [{
               // element:document,
                element:'.accordion-toggle',
                event: 'click',
                handler: this.show_lesson
            }
			];
            bindEvents(bindings);
        },
		 
		
    };
		
	window.BoxEdu_Subject_lesson_detailCtrl = Subject_lesson_detailCtrl;
						
})(window);